package com.gupao.p7store.common.utils.io;

import lombok.extern.slf4j.Slf4j;

import java.io.Closeable;
import java.io.IOException;

/**
 * desc:
 *
 * @ClassName: com.gupao.p7store.common.utils.io.IoTools
 * @author: dengbicheng
 * @date: 2022-01-20 17:51
 * @version: v 1.0.0
 */
@Slf4j
public class IoTools {

    public static void close(Closeable... closes) {
        for (Closeable closeable : closes) {
            try {
                if (closeable != null) {
                    closeable.close();
                }
            } catch (IOException e) {
                log.info("关闭IO流异常");
            }
        }
    }
}
